Computer control method, control program and computer

ABSTRACT

Provided is a method for controlling a computer, etc., which makes it possible to improve the usability of city building games. The computer is provided with a storage unit configured to store game contents arranged within a game space, positions of the game contents, and a template defining positions of one or more of game contents, and progresses a game by arranging the game contents within the game space based on a command by a player. The method includes when the template is applied to a predetermined area within the game space based on the command by the player, moving, by the computer, the game contents arranged within the game space to the positions of the game contents defined by the template.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of a U.S. application Ser. No.15/393,646, filed on Dec. 29, 2016, which is a continuation of U.S.application Ser. No. 14/983,984, filed on Dec. 30, 2015, now granted asU.S. Pat. No. 9,597,594, issued on Mar. 21, 2017, which is the NationalStage of International Application No. PCT/JP2014/075673, filed on Sep.26, 2014. This application is based upon and claims the benefit ofpriority from JP 2013-202721, filed on Sep. 27, 2013, JP 2014-080554,filed on Apr. 9, 2014, and PCT International Application No.PCT/JP2014/075673. The entire contents of these documents areincorporated herein by reference.

TECHNICAL FIELD

This invention relates to a method for controlling a computer, arecording medium and a computer.

BACKGROUND

In recent years, games which are played by installing a game program ona portable device from a server via a communication network have becomecommon. Such games include games in which multiple players canparticipate (so-called “social games”). There are games wherein playerscan not only fight against or help each other, but are also enabled tocommunicate with each other.

Such known games include, for example, games (so-called “city buildinggames”) wherein a player builds a city within a virtual space(hereinafter referred to as “game space”) provided in the game program.In city building games, players can build various facilities (such ashouses, streets, ports, train stations, airports, castles, trainingfacilities, etc.) on desired positions and create a city after theirliking.

SUMMARY

In conventional city building games, it is the object of the game tobuild a desired city, and it is unnecessary to completely rebuild a cityafter it has been built once. On the other hand, in recent city buildinggames, a city built by one player is attacked by a different player, andthe city (arrangement of items such as protective walls, buildings thatare subject to an attack, protecting soldiers, weapons, etc.) is one offactors for deciding the winning and losing, or superiority andinferiority. However, since the items (game contents) of a city of aplayer increase as the city develops, it is very complicated for aplayer to change positions, types, levels, etc., of individual items.Further, it is hard to understand what kind of effect changing a citywould have against an attack from a different player. Therefore, manyplayers have limited themselves to change only certain kinds of items,such as soldiers and weapons, for which changing positions, types,levels, etc., is easy. As a result, as the game progresses, it becomesmonotonous, and players might become bored with it.

The present invention has been devised to address the above problem, andan object of the invention is to provide a method for controlling acomputer, a recording medium and a computer that improve the usabilityof city building games and continuously attract players to the game.

Provided is a method for controlling a computer that is provided with astorage unit configured to store game contents arranged within a gamespace, positions of the game contents, and a template defining positionsof one or more of game contents, and that progresses a game by arrangingthe game contents within the game space based on a command by a player.The method includes when the template is applied to a predetermined areawithin the game space based on the command by the player, moving, by thecomputer, the game contents arranged within the game space to thepositions of the game contents defined by the template.

The computer may be, for example, a portable device, a desktop device, aserver, etc., as long as it can execute the above procedure.

In one embodiment, in the above method, the storage unit further storesa template related to a different player, and when the template relatedto the different player is applied to a predetermined area within thegame space based on the command by the player, the computer moves thegame contents arranged within the game space to the positions of thegame contents defined by the template related to the different player.

In another embodiment, in the above method, the storage unit furtherstores game contents which are arranged within the game space and arerelated to the different player, and positions of the game contents, andwhen the template related to the different player is applied to apredetermined area within the game space based on a command by thedifferent player, the computer moves, out of the game contents arrangedwithin the game space, game contents related to the different player tothe positions of the game contents defined by the template related tothe different player.

In another embodiment, in the above method, when a start of an event isreported by a different computer, the computer obtains a template forthe event from the different computer and moves the game contentsarranged within the game space to the positions of the game contentsdefined by the template obtained from the different computer.

Yet in another embodiment, in the above method, when the number of gamecontents arranged within the game space is smaller than the number ofgame contents for which positions are defined by the template, thecomputer moves the game contents arranged within the game space to thepositions of the game contents defined by the template to which themoving distance is the smallest.

Still in another embodiment, in the above method, out of the positionsof the game contents defined by the template, the computer displayspositions on which no game contents are arranged and the game contents,in a discernible condition.

In another embodiment, in the above method, when the number of gamecontents arranged within the game space is larger than the number ofgame contents for which position are defined by the template, thecomputer moves the game contents arranged within the game space forwhich the moving distance to the positions of the game contents definedby the template is the smallest, to the positions.

In another embodiment, in the above method, when a template is createdfor a predetermined area within the game space based on a command fromthe player, the computer stores positions of game contents arrangedwithin the predetermined area, as the template, in the storage unit.

Yet in another embodiment, in the above method, when a template iscreated by combining a plurality of templates based on a command fromthe player or a different player, or commands from the player and thedifferent player, the computer stores the positions of the game contentsdefined by the plurality of templates, as the template, in the storageunit.

Provided is a non-transitory computer-readable recording medium havingrecorded thereon a program for a computer that is provided with astorage unit configured to store game contents arranged within a gamespace, positions of the game contents, and a template defining positionsof one or more of game contents, and that progresses a game by arrangingthe game contents within the game space based on a command by a player.The program causes the computer to execute a process. The processincludes when the template is applied to a predetermined area within thegame space based on the command by the player, moving, by the computer,the game contents arranged within the game space to the positions of thegame contents defined by the template.

Provided is a computer that progresses a game by arranging game contentswithin a game space based on a command by a player. The computerincludes a storage unit configured to store game contents arrangedwithin a game space, positions of the game contents, and a templatedefining positions of one or more of game contents, and a processingunit configured to apply the template to a predetermined area within thegame space based on the command by the player. When the template isapplied, the processing unit moves the game contents arranged within thegame space to the positions of the game contents defined by thetemplate.

The above method, recording medium and computer make it possible toimprove the usability of city building games and continuously attractplayers to the game by making game contents and the arrangement of thegame contents changeable by using templates.

BRIEF DESCRIPTION OF THE DRAWINGS

Other features and advantages of the present invention will be apparentfrom the ensuing description, taken in conjunction with the accompanyingdrawings, in which:

FIG. 1 illustrates an example of a schematic configuration of a gamesystem;

FIG. 2A illustrates an example of a schematic configuration of theportable device;

FIGS. 2B to 2D illustrate examples of data structures of the varioustypes of tables;

FIGS. 3A to 3E illustrate examples of a display screen of the portabledevice;

FIG. 4 illustrates a concept of creating and applying a template;

FIG. 5A illustrates one possible schematic configuration of the server;

FIGS. 5B and 5C illustrate examples of data structures of the varioustypes of tables;

FIGS. 6A to 6C illustrate examples of the operational flow of theportable device;

FIGS. 7A to 7C illustrate examples of the operational flow of theserver;

FIG. 8A illustrates an example of a schematic configuration of theportable device according to the second embodiment;

FIG. 8B illustrates an example of a data structure of the facilitytable;

FIG. 9 illustrates a concept of applying a template in a multi-playerenvironment;

FIGS. 10A and 10B illustrate examples of the operational flow of theportable device;

FIG. 11 illustrates a concept of combining templates in a multi-playerenvironment;

FIG. 12 illustrates an example of a schematic configuration of theportable device according to the third embodiment;

FIG. 13A illustrates one possible schematic configuration of the server;

FIG. 13B illustrates an example of a data structure of the event table;

FIGS. 14A and 14B illustrate examples of the operational flow of theportable device; and

FIGS. 15A to 15C illustrate examples of the operational flow of theserver.

DESCRIPTION

Hereinafter, with reference to the drawings, a method for controlling acomputer, a recording medium, and a computer will be described. Itshould be noted that the technical scope of the present invention is notlimited to the described embodiments, but covers the invention describedin the claims and its equivalent.

First Embodiment

In the present embodiment, a player builds a city within a game space.The player can arrange various facilities which are one example of gamecontents, within the game space. Further, for a predetermined areawithin the game space, the player can also create a template stipulatingtypes and positions of facilities based on the types and positions offacilities arranged within the area. Moreover, the player can also applythe created template to a given area within the game space. When atemplate is applied, facilities arranged within the game space areautomatically changed to the facilities defined in the template, andthey are automatically moved to the defined positions.

Game contents refer to digital contents used in a game, and include,besides facilities, characters, soldiers, weapons, cards, figures,avatars, items, etc.

FIG. 1 illustrates an example of a schematic configuration of a gamesystem 1.

The game system 1 includes at least one portable device 2 and a server3. The portable device 2 and the server 3 are connected to each othervia a communication network, and are connected to each other, forexample, via a base station 4, a mobile communication network 5, agateway 6, and the Internet 7. A program to be executed by the portabledevice 2 (e.g., a game program) and a program to be executed by theserver 3 (e.g., a game control program) communicate with each other byusing a communication protocol such as a Hypertext Transfer Protocol(HTTP).

FIG. 2A illustrates an example of a schematic configuration of theportable device 2.

The portable device 2 progresses the game in response to an operation ofan operation unit 23 by a player. When necessary, the portable device 2is connected to the server 3 via the base station 4, the mobilecommunication network 5, the gateway 6, and the Internet 7, tocommunicate with the server 3. In order to implement the foregoingfunctions, the portable device 2 includes a device communication unit21, a device storage unit 22, the operation unit 23, a display unit 24,and a device processing unit 25.

While a multifunctional mobile phone (a so-called “smartphone”) may beassumed as the portable device 2, the present invention is not limitedto this. The portable device 2 may be, for example, a mobile phone (aso-called “feature phone”), a personal digital assistant (PDA), aportable game machine, a portable music player, a tablet device, atablet personal computer (PC), a notebook PC, etc., as long as thepresent invention is applicable thereto.

The device communication unit 21 includes a communication interfacecircuit including an antenna having a sensitivity band in apredetermined frequency band, and connects the portable device 2 to awireless communication network. The device communication unit 21establishes a wireless signal link with the base station 4 by a CodeDivision Multiple Access (CDMA) system or the like via a channel to beassigned by the base station 4, and communicates with the base station4. The device communication unit 21 sends data supplied from the deviceprocessing unit 25 to the server 3 or the like. The device communicationunit 21 supplies the data received from the server 3 or the like to thedevice processing unit 25.

The device storage unit 22 includes a semiconductor memory, for example.The device storage unit 22 stores an operating system program, a driverprogram, an application program, data, etc., used for processing in thedevice processing unit 25. For example, the device storage unit 22stores an input device driver program for controlling the operation unit23 and an output device driver program for controlling the display unit24, as the driver program. The device storage unit 22 stores a gameprogram, etc., for progressing the game and displaying the resultthereof, as the application program. The device storage unit 22 storesidentification numbers (IDs) of the players, a facility table (FIG. 2B)for managing facilities arranged within the game space, a facility-typetable (FIG. 2C) for managing types of the facilities, a template table(FIG. 2D) for managing templates, and image data, video data, etc.,relating to the facilities, templates, etc., as the data. Further, thedevice storage unit 22 may store temporary data relating topredetermined processing.

FIG. 2B depicts a facility table. In the facility table, a facility ID,a type ID, a position within the game space, etc., are recorded for eachfacility.

In the present embodiment, the game space is configured in grid form,wherein one facility is arranged on one grid, and the position of thefacility is represented with the help of grid coordinates that havetheir origin in a predetermined grid (e.g., upper left of the gamespace). However, the present invention is not limited to thisconfiguration. Any configuration of the game space, etc., is possible aslong as the present invention can be applied to the configuration.

FIG. 2C depicts a facility-type table. In the facility-type table, atype ID, name, file name of image data, etc., are recorded for each typeof facility.

FIG. 2D depicts a template table. In the template table, for eachtemplate, a template ID, a file name of thumbnail image data, a type IDand a position within the template of each facility, etc., are recorded.

Similarly to FIG. 2B, a position of a facility is represented with thehelp of the grid coordinates that have their origin in a predeterminedgrid (e.g., upper left of the template). However, the present inventionis not limited to this configuration. Any representation of a positionis possible as long as the present invention can be applied with therepresentation.

The operation unit 23 may be any device capable of operating theportable device 2, for example, a touch panel, a key button or the like.The player can input letters, numbers, symbols, etc., by using theoperation unit 23. When operated by the player, the operation unit 23generates a signal corresponding to the operation. The generated signalis supplied to the device processing unit 25 as a command from theplayer.

The display unit 24 may be any device capable of displaying a video, animage, etc., for example, a liquid crystal display, an organicelectro-luminescence (EL) display, etc. The display unit 24 displays avideo, an image, etc., corresponding to video data and image datasupplied from the device processing unit 25.

The device processing unit 25 includes one or more processors and theirperipheral circuits. The device processing unit 25 is, for example, acentral processing unit (CPU), and integrally controls an overalloperation of the portable device 2. The device processing unit 25controls operations of the device communication unit 21, the displayunit 24, etc., so that various types of processing of the portabledevice 2 are executed in an appropriate order in accordance with theprograms stored in the device storage unit 22, the operation of theoperation unit 23, etc. The device processing unit 25 executesprocessing based on the programs (the operating system program, thedriver program, the application program, etc.) stored in the devicestorage unit 22. The device processing unit 25 can execute multipleprograms (application programs, etc.) in parallel.

FIGS. 3A to 3E illustrate examples of a display screen of the portabledevice 2.

FIG. 3A depicts a game progression screen 300 that is displayed when acommand has been given to start the game.

The game progression screen 300 displays a game space 301 and variousfacilities 302 to 306 arranged within the game space.

Further, multiple buttons are displayed in the lower portion of the gameprogression screen 300. By pushing buttons, commands are given: pushinga “Create” button 307 creates a template, pushing an “Apply” button 308applies a template.

FIG. 3B depicts an area selection screen 310 that is displayed when acommand to create a template has been given on the game progressionscreen 300 depicted in FIG. 3A.

The area selection screen 310 displays the game space 301, in which, forexample, by tapping on two arbitrary points, an area 311 with the twopoints as opposite apexes is selected.

Further, a “Confirm” button 312 is displayed in the lower portion of thearea selection screen 310, and by pushing this button, a command isgiven to create a template for the selected area 311.

FIG. 3C depicts a template selection screen 320 that is displayed when acommand to apply a template has been given on the game progressionscreen 300 depicted in FIG. 3A.

On the template selection screen 320, a thumbnail image 321 and a“Select” button 322 are displayed for each template. By pushing the“Select” button 322, the corresponding template is selected.

FIG. 3D depicts a template display screen 330 that is displayed when atemplate has been selected on the template selection screen 320 depictedin FIG. 3C.

A preview image 3310 for when the template is applied to a predeterminedarea (e.g., around the center) within the game space is displayed in theleft portion of the template display screen 330.

Further, names and quantities 3320 of facilities for which positions aredefined by the template, are listed in the right portion of the templatedisplay screen 330.

Further, a “Confirm” button 333 is displayed in the lower portion of thetemplate display screen 330, and by pushing this button, a template isconfused.

FIG. 3E depicts an area selection screen 340 that is displayed when atemplate has been confirmed on the template display screen 330 depictedin FIG. 3D.

The area selection screen 340 displays the game space 301, in which, forexample, by tapping on two arbitrary points, an area 341 with the twopoints as opposite apexes is selected.

Further, a “Confirm” button 342 is displayed in the lower portion of thearea selection screen 340, and by pushing this button, a command isgiven to apply the template to the selected area 341.

FIG. 4 illustrates a concept of creating and applying a template.

400 illustrates a game space. Nine facilities are arranged within thegame space 400. Specifically, four facilities illustrated as “blackcircle”, three facilities illustrated as “black triangle”, and twofacilities illustrated as “black square” are arranged therein.

Assume that a template has been created for an area 401 within the gamespace 400. 410 illustrates the created template. The template 410defines that facilities illustrated as “black circle” of a typeillustrated as “white circle” are arranged at (1,1) and (1,2),facilities illustrated as “black triangle” of a type illustrated as“white triangle” are arranged at (1,3), (2,1) and (2,2), and a facilityillustrated as “black square” of a type illustrated as “white square” isarranged at (2,3).

420 illustrates another game space. Six facilities are arranged withinthe game space 420. Specifically, two facilities illustrated as “blackcircle”, three facilities illustrated as “black triangle”, and onefacility illustrated as “black square” are arranged therein.

Assume that the template 410 has been applied to an area 421 within thegame space 420. The number of types of facilities and the number offacilities in each type arranged within the game space 420 are equal tothe number of types of facilities and the number of facilities in eachtype, respectively, positions of the facilities being defined by thetemplate 410. Thus, all facilities arranged within the game space 420are moved to positions of facilities as defined by the template 410.Actually, facilities 422 to 425 arranged outside of the area 421 aremoved to positions of these facilities within the area 421. 420′illustrates the game space 420 after the facilities 422 to 425 have beenmoved. 430 illustrates yet another game space. Nine facilities arearranged within the game space 430. Specifically, three facilitiesillustrated as “black circle”, five facilities illustrated as “blacktriangle”, and one facility illustrated as “black square” are arrangedtherein.

Assume that the template 410 has been applied to an area 431 within thegame space 430. The number of types of facilities and the number offacilities in each type arranged within the game space 430 is equal toor larger than the number of types of facilities and the number offacilities in each type, respectively, positions of the facilities beingdefined by the template 410. Thus, of the facilities arranged within thegame space 420, those facilities with the smallest moving distance(e.g., Manhattan distance) to positions of facilities defined by thetemplate 410, are moved to the positions of facilities. Actually,facilities 432 to 435 arranged outside of the area 431 are moved topositions of these facilities within the area 431. 430′ illustrates thegame space 430 after the facilities 432 to 435 have been moved.

The facilities to be moved are not limited to those with the smallestmoving distance. The player may also designate facilities which are tobe moved, or an area containing facilities which are to be moved.Further, the player may also in advance designate facilities which arenot to be moved, or an area containing facilities which are not to bemoved.

440 illustrates still another game space. Four facilities are arrangedwithin the game space 440. Specifically, one facility illustrated as“black circle”, two facilities illustrated as “black triangle”, and onefacility illustrated as “black square” are arranged therein.

Assume that the template 410 has been applied to an area 441 within thegame space 440. The number of types of facilities and the number offacilities in each type arranged within the game space 440 is equal toor smaller than the number of types of facilities and the number offacilities in each type, respectively, positions of the facilities beingdefined by the template 410. Thus, all facilities arranged within thegame space 440 are moved to positions of facilities defined by thetemplate 410, to which the moving distance is the smallest. Actually,facilities 442 and 443 arranged outside the area 441 are moved topositions of these facilities within the area 441. 440′ illustrates thegame space 440 after the facilities 442 and 443 have been moved.

In the game space 440′, positions on which no facilities are arrangedamong the positions of facilities defined by the template 410, areillustrated in a condition where the facility type is discernible (e.g.,“white circle” 444 and “white triangle” 445).

Further, when no facility has been arranged, it is also possible topresent the player with facilities of the same type or with facilitiesof a similar type as proposals.

Moreover, it is also possible for the player to purchase facilities forpositions where no facility has been arranged, or to acquire thefacilities, for example, by trading with a different player in amulti-player environment as described below. Moreover, when the playerhas not arranged a facility defined by a template within the game spacebut has stored the facility in storage, the player may arrange thisfacility based on the template, or conversely, the player may store afacility that is not defined by the template, in the storage. Althoughin the above description, a player creates templates himself/herself,templates may also be distributed from a service-side server 3, or maybe acquired from other players. In such cases, a player may not possessa facility defined by a template in some cases. However, whether theplayer possesses a facility defined by a template may be judged on aportable device 2 side or on a server 3 side, and a screen forpurchasing the facility which has been judged not to be in the player'spossession may be displayed on the portable device 2, so that the playeris automatically guided to a purchase screen.

Further, templates may also be automatically created based on anoperation by the player. For example, the server 3 may automaticallycreate templates based on facilities the player possesses, facilitiesselected by the player, an area and/or an objective of a template. Theobjective of a template is, for instance, to realize a city that offersstrong protection against soldiers with bows and arrows, to realize acity that work effectively for protection against attacks by giants, tostrengthen the protection against air attacks, etc. In doing so, itbecomes easy for the player to create templates consistent withobjectives.

In order to achieve the above-described functions, the device processingunit 25 includes a game progression unit 251, a template creation unit252, and a template application unit 253. All of these units arefunctional modules implemented by a program executed on a processorprovided in the device processing unit 25. Alternatively, these unitsmay also be provided as firmware on the portable device 2.

In the following, processing by the game progression unit 251 will bedescribed.

The game progression unit 251 controls the start and progression of thegame, and appropriately gives commands to execute processing to thetemplate creation unit 252, template application unit 253, etc.

Specifically, when a command to start the game is given by the playervia the operation unit 23, the game progression unit 251 displays thegame progression screen 300.

In other words, the game progression unit 251 refers to the facilitytable stored in the device storage unit 22, and extracts a type ID and aposition of each facility. Further, the game progression unit 251 refersto the facility-type table stored in the device storage unit 22 by usingthe extracted type IDs as key, and extracts file names of image data forcorresponding types. Further, the game progression unit 251 obtainsimage data corresponding to the extracted file names, from the devicestorage unit 22. Then, the game progression unit 251 configures a gameprogression screen 300 that displays images arising from the obtainedimage data according to the extracted positions, and that simultaneouslydisplays buttons for receiving commands such as template creation,template application, etc., in a predetermined layout; and outputs thegame progression screen 300 to the display unit 24.

When a command to create a template is given by the player via theoperation unit 23, the game progression unit 251 gives a command toexecute processing to the template creation unit 252.

When a command to apply a template is given by the player via theoperation unit 23, the game progression unit 251 gives a command toexecute processing to the template application unit 253.

When a command to execute different processing is given by the playervia the operation unit 23, the game progression unit 251 executes thedifferent processing.

In the following, processing by the template creation unit 252 will bedescribed.

The template creation unit 252 creates templates, stores the templatesin the device storage unit 22, and registers the created templates onthe server 3.

Specifically, the template creation unit 252 displays the area selectionscreen 310.

When an area has been selected and a command to create a template isgiven by the player via the operation unit 23, the template creationunit 252 creates a template.

In other words, the template creation unit 252 refers to the facilitytable stored in the device storage unit 22 by using the coordinates ofthe selected area as key, and extracts a type ID and a position withinthe game space of each facility arranged within the selected area. Thetemplate creation unit 252 further converts the extracted positionswithin the game space to positions within the template. Moreover, thetemplate creation unit 252 creates thumbnail image data for the selectedarea, and stores the data in the device storage unit 22. The templatecreation unit 252 then stores the file name of the stored thumbnailimage data, the extracted type ID and position within the template ofeach facility, etc., in the template table stored in the device storageunit 22 under a newly assigned template ID.

Further, the template creation unit 252 registers the created templateon the server 3.

In other words, the template creation unit 252 sends a templateregistration request via the device communication unit 21 to the server3 by using the player ID, the assigned template ID, the createdthumbnail image data, and the extracted type ID and position within thetemplate of each facility, as parameters.

Then, the template creation unit 252 terminates the processing.

In the following, processing by the template application unit 253 willbe described.

The template application unit 253 obtains a template from the devicestorage unit 22 or the server 3, and applies the obtained template.

Specifically, the template application unit 253 displays the templateselection screen 320.

In other words, the template application unit 253 refers to the templatetable stored in the device storage unit 22, and extracts an ID and afile name of thumbnail image data of each template. Further, thetemplate application unit 253 obtains thumbnail image data correspondingto the extracted file name, from the device storage unit 22.

When necessary, the template application unit 253 sends a request forproviding a template list via the device communication unit 21 to theserver 3 by using the player ID as a parameter. Further, the templateapplication unit 253 receives an ID and thumbnail image data of eachtemplate from the server 3 via the device communication unit 21.

Then, the template application unit 253 configures the templateselection screen 320 that displays thumbnail images arising from theobtained thumbnail image data, buttons for receiving commands such astemplate selection, etc., in a predetermined layout; and outputs thetemplate selection screen 320 to the display unit 24.

When a template is selected by the player via the operation unit 23, thetemplate application unit 253 displays the template display screen 330.

In other words, when the selected template is a template provided by theserver 3, the template application unit 253 sends a request forproviding the template via the device communication unit 21 to theserver 3 by using the ID of the selected template as a parameter.Further, the template application unit 253 receives thumbnail image dataof a corresponding template and the type ID and position of eachfacility from the server 3 via the device communication unit 21. Thetemplate application unit 253 then stores the received thumbnail imagedata in the device storage unit 22. Further, the template applicationunit 253 stores the ID of the selected template, the file name of thestored thumbnail image data, the received type ID and position of eachfacility, etc., in the template table stored in the device storage unit22.

The template application unit 253 refers to the template table stored inthe device storage unit 22 by using the ID of the selected template askey, and extracts a type ID of each facility in the correspondingtemplate. The template application unit 253 counts the number ofextracted types of facilities. Further, the template application unit253 refers to the facility-type table stored in the device storage unit22 by using the extracted type IDs as key, and extracts correspondingnames of the types. Moreover, the template application unit 253 createsa preview image for when the selected template is applied to apredetermined area within the game space. Then, the template applicationunit 253 configures the template display screen 330 that displays theextracted names and the number of facilities, the created preview image,buttons for receiving commands such as template confirmation, etc., in apredetermined layout; and outputs the template display screen 330 to thedisplay unit 24.

In the following, a process of applying a template will be described.

When a template is confirmed by the player via the operation unit 23,the template application unit 253 displays the area selection screen340.

When an area has been selected and a command to apply a template hasbeen given by the player via the operation unit 23, the templateapplication unit 253 applies the template.

In other words, the template application unit 253 refers to the facilitytable stored in the device storage unit 22, and extracts an ID, a typeID and a position within the game space of each facility. The templateapplication unit 253 counts the number of extracted types of facilitiesand the number of facilities in each type. The template application unit253 further refers to the template table stored in the device storageunit 22 by using the ID of the selected template as key, and extracts atype Ill and a position within the template of each facility in thecorresponding template. The template application unit 253 counts thenumber of extracted types of facilities and the number of facilities ineach type. Moreover, the template application unit 253 converts theextracted positions within the template to positions within the gamespace based on coordinates of the selected area. For each type offacility, the template application unit 253 compares the number offacilities of this type within the game space and the number offacilities of this type within the template.

When the former and the latter are equal, the template application unit253 moves the facilities of this type within the game space to thepositions of the facilities of this type within the template. In otherwords, the template application unit 253 refers to the facility tablestored in the device storage unit 22 by using the IDs of the facilitiesof each type within the game space as key, and stores the positions ofthe facilities of this type within the template as positions of thecorresponding facilities within the game space.

On the other hand, when the former is larger than the latter, thetemplate application unit 253 moves the facilities of this type withinthe game space for which the moving distance to the positions of thefacilities of this type within the template is the smallest, to thepositions of these facilities. In other words, for each position of afacility of a type within the template, the template application unit253 specifies a facility of this type within the game space for whichthe moving distance to the position is the smallest. The templateapplication unit 253 then refers to the facility table stored in thedevice storage unit 22 by using the ID of the specified facility as key,and stores the position of the specified facility as position of thecorresponding facility within the game space.

On the other hand, when the former is smaller than the latter, thetemplate application unit 253 moves the facilities of a type within thegame space to positions of the facilities of this type within thetemplate to which the moving distance is the smallest. In other words,for each facility of a type within the game space, the templateapplication unit 253 specifies a position of a facility of this typewithin the template to which the moving distance is the smallest. Thetemplate application unit 253 then refers to the facility table storedin the device storage unit 22 by using the ID of the facility as key,and stores the specified position as position of the correspondingfacility within the game space.

Other than facilities for which the moving distance is the smallest, theplayer may also designate facilities which are to be moved, or an areacontaining facilities which are to be moved. Further, the player mayalso in advance designate facilities which are not to be moved, or anarea containing facilities which are not to be moved.

Then, the template application unit 253 terminates the processing.

FIG. 5A illustrates one possible schematic configuration of the server3.

In response to requests from the portable device 2, the server 3registers and provides templates. In order to achieve such functions,the server 3 is provided with a server communication unit 31, a serverstorage unit 32, and a server processing unit 33.

The server communication unit 31 includes a communication interfacecircuit for connecting the server 3 to the Internet 7, and communicateswith the Internet 7. The server communication unit 31 supplies the datareceived from the portable device 2 or the like to the server processingunit 33. The server communication unit 31 sends the data supplied fromthe server processing unit 33 to the portable device 2 or the like.

The server storage unit 32 includes at least one of a magnetic tapedevice, a magnetic disk device and an optical disk device, for example.The server storage unit 32 stores an operating system program, a driverprogram, an application program, data, etc., used for processing in theserver processing unit 33. The server storage unit 32 stores, forexample, a game control program, etc., for registering and providingtemplates, as the application program. The server storage unit 32 storesa player table (FIG. 5B) for managing players, a template table (FIG.5C) for managing templates, and image data, video data, etc., relatingto the players, templates, etc., as the data. Further, the serverstorage unit 32 may store temporary data relating to certain processing.

FIG. 5B depicts a player table. In the player table, a player ID a name,a file name of image data, an ID of a created template, etc., arerecorded for each player.

FIG. 5C depicts a template table. Similarly to FIG. 2D, in the templatetable, for each template, a template ID, a file name of thumbnail imagedata, a type ID and a position within the template of each facility,etc., are recorded.

The server processing unit 33 includes one or more processors and theirperipheral circuits. The server processing unit 33 is, for example, aCPU, and integrally controls an overall operation of the server 3. Theserver processing unit 33 controls an operation of the servercommunication unit 31 or the like so that various types of processing ofthe server 3 are executed in an appropriate order in accordance with theprograms stored in the server storage unit 32. The server processingunit 33 executes processing based on the programs stored in the serverstorage unit 32 (the operating system program, the driver program, theapplication program, etc.). The server processing unit 33 can executethe multiple programs (the application program, etc.) in parallel.

The server processing unit 33 includes a server control unit 331, atemplate registration unit 332, and a template provision unit 333. Eachof the units is a functional module implemented by a program to beexecuted by the processor included in the server processing unit 33.Alternatively, each of the units may be provided as a firmware on theserver 3.

In the following, processing by the server control unit 331 will bedescribed.

The server control unit 331 controls the performance of the server andappropriately gives commands to execute processing to the templateregistration unit 332, template provision unit 333, etc.

Specifically, when a template registration request is received from theportable device 2 via the server communication unit 31, the servercontrol unit 331 gives the template registration unit 332 a command toexecute processing, by using the received template registration requestas a parameter.

When a request for providing a template list or a template provisionrequest is received from the portable device 2 via the servercommunication unit 31, the server control unit 331 gives the templateprovision unit 333 a command to execute processing, by using thereceived request for providing a template list or the like as aparameter.

When a different request is received from the portable device 2 via theserver communication unit 31, the server control unit 331 executesdifferent processing corresponding to the request.

In the following, processing by the template registration unit 332 willbe described.

The template registration unit 332 stores templates in the serverstorage unit 32.

In other words, the template registration unit 332 interprets thereceived template registration request, and specifies the ID of theplayer, the ID of the template, thumbnail image data, as well as thetype ID and position of each facility. Then, the template registrationunit 332 stores the specified thumbnail image data in the server storageunit 32. The template registration unit 332 further refers to the playertable stored in the server storage unit 32 by using the specified playerID as key, and stores the specified template ID as an ID of a templatecreated by the corresponding player. Moreover, the template registrationunit 332 stores the specified template ID, the file name of the storedthumbnail image data, the type ID and position of each specifiedfacility, etc., in the template table stored in the server storage unit32.

Then, the template registration unit 332 terminates the processing.

In the following, processing by the template provision unit 333 will bedescribed.

The template provision unit 333 obtains a template list or a templatefrom the server storage unit 32, and sends the obtained template list orthe like to the portable device 2.

Specifically, when a request for providing a template list has beenreceived, the template provision unit 333 obtains a template list fromthe server storage unit 32.

In other words, the template provision unit 333 interprets the receivedrequest for providing a template list, and specifies the ID of theplayer. The template provision unit 333 then refers to the player tablestored in the server storage unit 32 by using the specified player ID askey, and extracts an ID of a template created by a player different fromthe corresponding player. Further, the template provision unit 333refers to the template table stored in the server storage unit 32 byusing the extracted template ID as key, and extracts a file name ofthumbnail image data for the corresponding template. Moreover, thetemplate provision unit 333 obtains the thumbnail image datacorresponding to the extracted file name, from the server storage unit32.

On the other hand, when a template provision request is received, thetemplate provision unit 333 obtains a template from the server storageunit 32.

In other words, the template provision unit 333 interprets the receivedtemplate provision request, and specifies the ID of the template. Then,the template provision unit 333 refers to the template table stored inthe server storage unit 32 by using the specified template ID as key,and extracts a file name of thumbnail image data for the correspondingtemplate, as well as the type ID and position of each facility. Further,the template provision unit 333 obtains thumbnail image datacorresponding to the extracted file name, from the server storage unit32.

The template provision unit 333 sends the obtained template list or thelike to the portable device 2.

In other words, the template provision unit 333 sends the extracted IDof each template and the thumbnail image data, or the thumbnail imagedata of the template as well as the type ID and position of eachfacility that are obtained or the like, to the portable device 2 via theserver communication unit 31.

Then, the template provision unit 333 terminates the processing.

FIGS. 6A to 6C illustrate examples of the operational flow of theportable device 2.

The below-described operational flow is executed, based on a programthat is stored in advance in the device storage unit 22, mostly by thedevice processing unit 25 by working together with each component of theportable device 2.

FIG. 6A illustrates an example of the operational flow of the gameprogression unit 251.

The player gives the device processing unit 25 a command to start a gamevia the operation unit 23. The device processing unit 25 startsprocessing based on the game program. In other words, the gameprogression unit 251 implemented by the game program displays the gameprogression screen 300 (Step S100).

When a command to create a template is given by the player via theoperation unit 23 (Step S102—Yes), the game progression unit 251 givesthe template creation unit 252 a command to execute processing (StepS104).

FIG. 6B illustrates an example of the operational flow of the templatecreation unit 252.

The template creation unit 252 displays the area selection screen 310(Step S120).

When an area is selected by the player via the operation unit 23 (StepS122) and a command to create a template is given, the template creationunit 252 creates a template (Step S124).

The template creation unit 252 registers the created template on theserver 3 (Step S126). Then, the template creation unit 252 terminatesprocessing.

On the other hand, when a command to apply a template is given by theplayer via the operation unit 23 (Step S106—Yes), the game progressionunit 251 gives the template application unit 253 a command to executeprocessing (Step S108).

FIG. 6C illustrates an example of the operational flow of the templateapplication unit 253.

The template application unit 253 displays the template selection screen320 (Step S130).

When a template is selected by the player via the operation unit 23(Step S132), the template application unit 253 displays the templatedisplay screen 330.

When the template is confirmed by the player via the operation unit 23(Step S134), the template application unit 253 displays the areaselection screen 340.

When an area is selected by the player via the operation unit 23 (StepS136) and a command to apply a template is given, the templateapplication unit 253 applies the template (Step S138). Then, thetemplate application unit 253 terminates processing.

On the other hand, when a command for different processing is given bythe player via the operation unit 23 (Step S106—No), the gameprogression unit 251 executes the different processing (Step S110).

FIGS. 7A to 7C illustrate examples of the operational flow of the server3.

The below-described operational flow is executed, based on a programthat is stored in advance in the server storage unit 32, mostly by theserver processing unit 33 by working together with each component of theserver 3.

FIG. 7A illustrates an example of the operational flow of the servercontrol unit 331.

When a template registration request is received from the portabledevice 2 via the server communication unit 31 (Step S200—Yes), theserver control unit 331 gives the template registration unit 332 acommand to execute processing (Step S202), by using the receivedtemplate registration request as a parameter.

FIG. 7B illustrates an example of the operational flow of the templateregistration unit 332.

The template registration unit 332 stores the template included in thereceived template registration request in the server storage unit 32(Step S220). Then, the template registration unit 332 terminatesprocessing.

On the other hand, when a request for providing a template list or atemplate provision request is received from the portable device 2 viathe server communication unit 31 (Step S204—Yes), the server controlunit 331 gives the template provision unit 333 a command to executeprocessing (Step S206), by using the received request for providing atemplate list or the like as a parameter.

FIG. 7C illustrates an example of the operational flow of the templateprovision unit 333.

When the request for providing a template list is received (StepS230—Yes), the template provision unit 333 obtains a list of templatesof players other than the player corresponding to the player ID includedin the received request for providing a template list, from the serverstorage unit 32 (Step S232).

On the other hand, when the template provision request is received (StepS230—No), the template provision unit 333 obtains a templatecorresponding to the template ID included in the received templateprovision request, from the server storage unit 32 (Step S234).

The template provision unit 333 sends the obtained template list or thelike to the portable device 2 (Step S236). Then, the template provisionunit 333 terminates processing.

On the other hand, when a different request is received from theportable device 2 via the server communication unit 31 (Step S204—No),the server control unit 331 executes different processing correspondingto the request (Step S208).

As have been described above, by making the arrangement of facilitieschangeable by using templates, the usability of city building games isimproved, and it becomes possible to continuously attract players to thegame.

In the above-described embodiment, the case is described where uponapplication of a template, facilities are automatically arranged withinthe game space based on definition in the template. However, it is alsopossible that when a template is being applied, a mark is displayed onthe game space, so that the player can use this mark as approximationand change the types and positions of facilities himself/herself.

Further, besides buildings, walls, fences and so forth, facilities mayalso include information on types and quantities of soldiers and weaponsto fight back against an attack by a different player.

Further, multiple templates may be prepared corresponding to objectives,and the player may be able to select a template depending on theobjective. To give specific examples; there are multiple types ofsoldiers with which a different player attacks, and there may be atemplate realizing a city that offers strong protection against soldierswith bows and arrows, a template realizing a city that work effectivelyfor protection against attacks by giants, a template that strengthensthe protection against air attacks, etc.

Moreover, a characteristic value of each template may be calculatedbased on the facilities included in the template and the records ofbattles fought using the template in the game. Further, thecharacteristic value of the template and characteristics of the templatebased on the characteristic value may be displayed and presented to theplayer. Specifically, a defense power may be displayed based onparameters of protective facilities and the number of the protectivefacilities included in the template; a winning percentage when using thetemplate may be displayed; and characteristic that the template has gooddefense power and a good winning percentage is displayed based on thedefense power and winning percentage included in the templates. Thus,the player can easily understand the characteristics of respectivetemplates and compare the characteristics.

Second Embodiment

In the first embodiment, a single player environment is assumed, whereina player progresses the game by himself/herself. However, the presentinvention can also be applied to a multi-player environment whereinmultiple players progress the game together. In the present embodiment,multiple players build a city within a single game space, and eachplayer applies templates to a predetermined area within the game space.When a template is applied by a player, the facilities that belong tothe player among the facilities arranged within the game space are movedto positions of these facilities defined by the template.

Since the schematic configuration of the game system 1 is the same asillustrated in FIG. 1, a description thereof is omitted.

FIG. 8A illustrates an example of a schematic configuration of theportable device 2.

The portable device 2 progresses the game in response to an operation ofan operation unit 23 by a player or a command from a different portabledevice 2. When necessary, the portable device 2 is connected to theserver 3 via the base station 4, the mobile communication network 5, thegateway 6, and the Internet 7, to communicate with the server 3. Inorder to implement the foregoing functions, the portable device 2includes a device communication unit 21, a device storage unit 22′, theoperation unit 23, a display unit 24, and a device processing unit 25.

Since the device communication unit 21, the operation unit 23, and thedisplay unit 24 are the same as illustrated in FIG. 2A, a descriptionthereof is omitted.

The device storage unit 22′ includes a semiconductor memory, forexample. The device storage unit 22′ stores an operating system program,a driver program, an application program, data, etc., used forprocessing in the device processing unit 25. For example, the devicestorage unit 22′ stores an input device driver program for controllingthe operation unit 23 and an output device driver program forcontrolling the display unit 24, as the driver program. The devicestorage unit 22′ stores a game program, etc., for progressing the gameand displaying the result thereof, as the application program. Thedevice storage unit 22′ stores player IDs, a facility table (FIG. 8B)for managing facilities arranged within the game space, a facility-typetable (FIG. 2C) for managing types of the facilities, a template table(FIG. 2D) for managing templates, and image data, video data, etc.,relating to the facilities, templates, etc., as the data. Further, thedevice storage unit 22′ may store temporary data relating topredetermined processing.

FIG. 8B depicts a facility table. In the facility table, for eachplayer, an ID of each facility arranged within the game space by theplayer, a type ID, a position within the game space, etc., are recorded.

The device processing unit 25 includes one or more processors and theirperipheral circuits. The device processing unit 25 is, for example, aCPU, and integrally controls an overall operation of the portable device2. The device processing unit 25 controls operations of the devicecommunication unit 21, the display unit 24, etc., so that various typesof processing of the portable device 2 are executed in an appropriateorder in accordance with the programs stored in the device storage unit22′, the operation of the operation unit 23, etc. The device processingunit 25 executes processing based on the programs (the operating systemprogram, the driver program, the application program, etc.) stored inthe device storage unit 22′. The device processing unit 25 can executemultiple programs (application programs, etc.) in parallel.

FIG. 9 illustrates a concept of applying a template in a multi-playerenvironment.

900 illustrates a game space. Twelve facilities are arranged within thegame space 900. Specifically, four facilities illustrated as “blackcircle”, four facilities illustrated as “black triangle”, and fourfacilities illustrated as “black square” are arranged therein. Amongthese facilities, assume that the one facility illustrated as “blackcircle” and the two facilities illustrated as “black triangle” arrangedin the upper-right three by three squares are those of a player₁.Further, assume that the three facilities illustrated as “black square”arranged in the lower-right three by three squares are those of aplayer₂, the two facilities illustrated as “black triangle” and the onefacility illustrated as “black square” arranged in the lower-left threeby three squares are those of a player₃, and the three facilitiesillustrated as “black circle” arranged in the upper-left three by threesquares are those of a player₄.

Assume that a template 910 has been applied to an area 901 within thegame space 900 by the player₁. Similarly, assume that templates 920 to940 have been applied to areas 902 to 904 by the player₂ to player₄,respectively. In relation to the player₁, the number of types offacilities and the number of facilities in each type arranged within thegame space 900 are equal to the number of types of facilities and thenumber of facilities in each type, respectively, positions of thefacilities being defined by the template 910. Thus, all facilities ofthe player₁ are moved to positions of facilities as defined by thetemplate 910. Similarly, all facilities of the player₂ to player₄ aremoved to positions of facilities as defined by the templates 920 to 940,respectively. 900′ illustrates the game space 900 after all thefacilities have been moved.

In order to achieve the above-described functions, the device processingunit 25 includes a game progression unit 251′, a template creation unit252, a template application unit 253, and a second template applicationunit 254. All of these units are functional modules implemented by aprogram executed on a processor provided in the device processing unit25. Alternatively, these units may also be provided as firmware on theportable device 2.

Since the template creation unit 252 and the template application unit253 are the same as illustrated in FIG. 2A, a description thereof isomitted.

In the following, processing by the game progression unit 251′ will bedescribed.

The game progression unit 251′ controls the start and progression of thegame, and appropriately gives commands to execute processing to thetemplate creation unit 252, template application unit 253, secondtemplate application unit 254, etc.

Specifically, when a command to start the game is given by the playervia the operation unit 23, the game progression unit 251′ displays thegame progression screen 300.

When a command to create a template is given by the player via theoperation unit 23, the game progression unit 251′ gives a command toexecute processing to the template creation unit 252.

When a command to apply a template is given by the player via theoperation unit 23, the game progression unit 251′ gives a command toexecute processing to the template application unit 253.

When a template application command is received from a differentportable device 2 via the device communication unit 21, the gameprogression unit 251′ gives the second template application unit 254 acommand to execute processing, by using the received templateapplication command as a parameter.

When a command to execute different processing is given by the playervia the operation unit 23, the game progression unit 251′ executes thedifferent processing.

In the following, processing by the second template application unit 254will be described.

The second template application unit 254 obtains a template from theserver 3, and applies the obtained template.

Specifically, the second template application unit 254 obtains atemplate from the server 3.

In other words, the second template application unit 254 interprets thereceived template application command, and specifies the ID of theplayer, the ID of the template, and the coordinates of the area to whichthe template is to be applied. Further, the second template applicationunit 254 sends a template provision request via the device communicationunit 21 to the server 3 by using the specified template ID as aparameter.

Further, the second template application unit 254 receives thumbnailimage data of a corresponding template, as well as the type ID andposition of each facility from the server 3 via the device communicationunit 21. The second template application unit 254 then stores thereceived thumbnail image data in the device storage unit 22′. Further,the second template application unit 254 stores the ID of the specifiedtemplate, the file name of the stored thumbnail image data, the receivedtype ID and position of each facility, etc., in the template tablestored in the device storage unit 22′.

The second template application unit 254 applies the obtained template.

In other words, the second template application unit 254 refers to thefacility table stored in the device storage unit 22′ by using the ID ofthe specified player as key, and extracts an ID, a type ID and aposition within the game space of each facility of the correspondingplayer. The second template application unit 254 counts the number ofextracted types of facilities and the number of facilities in each type.The second template application unit 254 further refers to the templatetable stored in the device storage unit 22′ by using the ID of thespecified template as key, and extracts a type ID and a position withinthe template of each facility in the corresponding template. The secondtemplate application unit 254 counts the number of extracted types offacilities and the number of facilities in each type. Moreover, thesecond template application unit 254 converts the extracted positionswithin the template to positions within the game space based oncoordinates of the specified area. For each type of facility, the secondtemplate application unit 254 compares the number of facilities of thistype within the game space and the number of facilities of this typewithin the template, and, according to the result, moves the facilitiesof this type within the game space to the positions of the facilities ofthis type within the template.

Then, the second template application unit 254 terminates theprocessing.

Since the schematic configuration of the server 3 is the same asillustrated in FIG. 5A, a description thereof is omitted.

FIGS. 10A and 10B illustrate examples of the operational flow of theportable device 2.

The below-described operational flow is executed, based on a programthat is stored in advance in the device storage unit 22′, mostly by thedevice processing unit 25 by working together with each component of theportable device 2.

FIG. 10A illustrates an example of the operational flow of the gameprogression unit 251′.

Since Steps S100 to S108 are the same as illustrated in FIG. 6A, adescription thereof is omitted.

When a template application command is received from a differentportable device 2 via the device communication unit 21 (Step S300—Yes),the game progression unit 251′ gives the second template applicationunit 254 a command to execute processing, by using the received templateapplication command as a parameter (Step S302).

FIG. 10B illustrates an example of the operational flow of the secondtemplate application unit 254.

The second template application unit 254 obtains a templatecorresponding to the template ID included in the received templateapplication command, from the server 3 (Step S310).

The second template application unit 254 applies the obtained template(Step S312). Then, the second template application unit 254 terminatesthe processing.

On the other hand, when a command for different processing is given bythe player via the operation unit 23 (Step S300—No), the gameprogression unit 251′ executes the different processing (Step S110).

As have been described above, by allowing each player to change thearrangement of facilities by using templates in a multi-playerenvironment, the usability of city building games is improved, and itbecomes possible to continuously attract players to the game.

It should be noted that the present invention is not limited to theabove-described embodiment. For example, in the above-describedembodiment, in order to combine multiple templates to create a singletemplate, it is assumed that a player applies multiple templates topredetermined areas within the game space, or multiple players apply atemplate each to predetermined areas within the game space, and then atemplate for a predetermined area that encompasses all these areas iscreated. However, a player may designate multiple templates or multipleplayers may designate a template each, and then a template may becreated by directly joining these templates.

FIG. 11 illustrates a concept of combining templates in a multi-playerenvironment.

Assume that the player₁ has specified a template 1110 for an area 1100.Further, assume that the player₂ to player₄ have specified templates1120 to 1140 for areas 1101 to 1103, respectively. 1150 illustrates atemplate obtained by combining the templates 1110 to 1140.

In order to achieve the above-described functions, the portable device 2may perform processing as described below.

When a command to create a template is given by the player via theoperation unit 23, the portable device 2 displays a predetermined screenand receives designations of template and area. In the same manner, theportable device 2 receives designations of template and area from adifferent portable device 2. Then, the portable device 2 obtains thedesignated templates from the device storage unit 22 or the server 3,and creates a new template by arranging the obtained templates on thedesignated areas.

In other words, the portable device 2 corrects the position of eachfacility defined by the obtained templates based on the coordinatesspecified by the designated areas. The portable device 2 then stores thetype ID and corrected position, etc., of each facility defined by theobtained templates, in the template table stored in the device storageunit 22 under a newly assigned template ID.

Third Embodiment

In the above-described embodiment, it is assumed that templates arecreated by the player. However, preexisting templates may also bedistributed by a server or the like. In the present embodiment, apreexisting template is distributed by a server depending on an event(e.g., protecting the city from an enemy character) happening in thecity building game. The player applies the template distributed by theserver, to a predetermined area within his/her own game space, moves andadds facilities as necessary, and thus prepares for the event. After acertain time has passed, the event happens, and the player is givenvarious rewards (e.g., templates, facilities, etc.) depending on theoutcome. Such a template can also be understood as a task given to theplayer in an event.

Since the schematic configuration of the game system 1 is the same asillustrated in FIG. 1, a description thereof is omitted.

FIG. 12 illustrates an example of a schematic configuration of theportable device 2.

The portable device 2 progresses the game in response to an operation ofan operation unit 23 by a player. When necessary, the portable device 2is connected to the server 3 via the base station 4, the mobilecommunication network 5, the gateway 6, and the Internet 7, tocommunicate with the server 3. In order to implement the foregoingfunctions, the portable device 2 includes a device communication unit21, a device storage unit 22, the operation unit 23, a display unit 24,and a device processing unit 25.

Since the device communication unit 21, the device storage unit 22, theoperation unit 23, and the display unit 24 are the same as illustratedin FIG. 2A, a description thereof is omitted.

The device processing unit 25 includes one or more processors and theirperipheral circuits. The device processing unit 25 is, for example, aCPU, and integrally controls an overall operation of the portable device2. The device processing unit 25 controls operations of the devicecommunication unit 21, the display unit 24, etc., so that various typesof processing of the portable device 2 are executed in an appropriateorder in accordance with the programs stored in the device storage unit22, the operation of the operation unit 23, etc. The device processingunit 25 executes processing based on the programs (the operating systemprogram, the driver program, the application program, etc.) stored inthe device storage unit 22. The device processing unit 25 can executemultiple programs (application programs, etc.) in parallel.

The device processing unit 25 includes a game progression unit 251″, atemplate creation unit 252, a template application unit 253, and a thirdtemplate application unit 255. All of these units are functional modulesimplemented by a program executed on a processor provided in the deviceprocessing unit 25. Alternatively, these units may also be provided asfirmware on the portable device 2.

Since the template creation unit 252 and the template application unit253 are the same as illustrated in FIG. 2A, a description thereof isomitted.

In the following, processing by the game progression unit 251″ will bedescribed.

The game progression unit 251″ controls the start and progression of thegame, and appropriately gives commands to execute processing to thetemplate creation unit 252, template application unit 253, thirdtemplate application unit 255, etc.

Specifically, when a command to start the game is given by the playervia the operation unit 23, the game progression unit 251″ displays thegame progression screen 300.

When a command to create a template is given by the player via theoperation unit 23, the game progression unit 251″ gives a command toexecute processing to the template creation unit 252.

When a command to apply a template is given by the player via theoperation unit 23, the game progression unit 251″ gives a command toexecute processing to the template application unit 253.

When an event start report is received from the server 3 via the devicecommunication unit 21, the game progression unit 251″ gives the thirdtemplate application unit 255 a command to execute processing, by usingthe received event start report as a parameter.

When a command to execute different processing is given by the playervia the operation unit 23, the game progression unit 251″ executes thedifferent processing.

In the following, processing by the third template application unit 255will be described.

The third template application unit 255 obtains a template for an eventfrom the server 3, and applies the obtained template.

Specifically, the third template application unit 255 obtains a templatefor an event from the server 3.

In other words, the third template application unit 255 interprets thereceived event start report, and specifies the ID of the event. Further,when a command to participate in an event is given by the player via theoperation unit 23, the third template application unit 255 sends anevent participation request via the device communication unit 21 to theserver 3 by using the player ID and the specified event ID asparameters. Further, the third template application unit 255 receives anID and thumbnail image data of a template for the corresponding event,as well as the type ID and position of each facility from the server 3via the device communication unit 21. The third template applicationunit 255 then stores the received thumbnail image data in the devicestorage unit 22. Further, the third template application unit 255 storesthe Ill of the received template, the file name of the stored thumbnailimage data, the received type ID and position of each facility, etc., inthe template table stored in the device storage unit 22.

The third template application unit 255 applies the obtained template.

In other words, the third template application unit 255 refers to thefacility table stored in the device storage unit 22, and extracts an ID,a type ID and a position within the game space of each facility. Thethird template application unit 255 counts the number of extracted typesof facilities and the number of facilities in each type. The thirdtemplate application unit 255 further refers to the template tablestored in the device storage unit 22 by using the ID of the receivedtemplate as key, and extracts a type ID and a position within thetemplate of each facility in the corresponding template. The thirdtemplate application unit 255 counts the number of extracted types offacilities and the number of facilities in each type. Moreover, thethird template application unit 255 converts the extracted positionswithin the template to positions within the game space based oncoordinates of the area selected by the player via the operation unit23. For each type of facility, the third template application unit 255compares the number of facilities of this type within the game space andthe number of facilities of this type within the template, and,according to the result, moves the facilities of this type within thegame space to the positions of the facilities of this type within thetemplate.

Then, the third template application unit 255 terminates the processing.

FIG. 13A illustrates one possible schematic configuration of the server3.

In response to requests from the portable device 2, the server 3registers and provides templates. Further, the server 3 manages eventsand provides templates. In order to achieve such functions, the server 3is provided with a server communication unit 31, a server storage unit32′, and a server processing unit 33.

Since the server communication unit 31 is the same as illustrated inFIG. 5A, a description thereof is omitted.

The server storage unit 32′ includes at least one of a magnetic tapedevice, a magnetic disk device and an optical disk device, for example.The server storage unit 32′ stores an operating system program, a driverprogram, an application program, data, etc., used for processing in theserver processing unit 33. The server storage unit 32′ stores, forexample, a game control program, etc., for registering and providingtemplates and managing events, as the application program. The serverstorage unit 32′ stores a player table (FIG. 5B) for managing players, atemplate table (FIG. 5C) for managing templates, an event table formanaging events (FIG. 13B), and image data, video data, etc., relatingto the players, templates, etc., as the data. Further, the serverstorage unit 32′ may store temporary data relating to certainprocessing.

FIG. 13B depicts an event table. In the event table, an event ID,starting date and time, an ID of a template to be used, an ID of aparticipating player, etc., are recorded for each event.

The server processing unit 33 includes one or more processors and theirperipheral circuits. The server processing unit 33 is, for example, aCPU, and integrally controls an overall operation of the server 3. Theserver processing unit 33 controls an operation of the servercommunication unit 31 or the like so that various types of processing ofthe server 3 are executed in an appropriate order in accordance with theprograms stored in the server storage unit 32′. The server processingunit 33 executes processing based on the programs stored in the serverstorage unit 32′ (the operating system program, the driver program, theapplication program, etc.). The server processing unit 33 can executethe multiple programs (the application program, etc.) in parallel.

The server processing unit 33 includes a server control unit 331′, atemplate registration unit 332, a template provision unit 333, and anevent management unit 334. Each of the units is a functional moduleimplemented by a program to be executed by the processor included in theserver processing unit 33. Alternatively, each of the units may beprovided as a firmware on the server 3.

Since the template registration unit 332 and the template provision unit333 are the same as illustrated in FIG. 5A, a description thereof isomitted.

In the following, processing by server control unit 331′ will bedescribed.

The server control unit 331′ controls the performance of the server andappropriately gives commands to execute processing to the templateregistration unit 332, template provision unit 333, event managementunit 334, etc.

Specifically, when a template registration request is received from theportable device 2 via the server communication unit 31, the servercontrol unit 331′ gives the template registration unit 332 a command toexecute processing, by using the received template registration requestas a parameter.

When a request for providing a template list or a template provisionrequest is received from the portable device 2 via the servercommunication unit 31, the server control unit 331′ gives the templateprovision unit 333 a command to execute processing, by using thereceived request for providing a template list or the like as aparameter.

When there is an event whose starting date and time has passed, theserver control unit 331′ gives the event management unit 334 a commandto execute processing, by using the event ID as a parameter.

In other words, the server control unit 331′ refers to the event tablestored in the server storage unit 32′, and extracts an ID and startingdate and time of each event. Further, the server control unit 331′obtains the current date and time from a clock (not illustrated). Whenthere is an event whose starting date and time is before the obtainedcurrent date and time, the server control unit 331′ gives the eventmanagement unit 334 a command to execute processing, by using the eventID as a parameter.

When an event participation request is received from the portable device2 via the server communication unit 31, the server control unit 331′gives the event management unit 334 a command to execute processing, byusing the received event participation request as a parameter.

When a different request is received from the portable device 2 via theserver communication unit 31, the server control unit 331′ executesdifferent processing corresponding to the request.

In the following, processing by the event management unit 334 will bedescribed.

The event management unit 334 sends an event start report to theportable device 2. Further, the event management unit 334 obtains atemplate for an event from the server storage unit 32′, and sends theobtained template to the portable device 2.

Specifically, when an event ID has been received, the event managementunit 334 sends an event start report to the portable device 2.

In other words, the event management unit 334 refers to the player tablestored in the server storage unit 32′, and specifies players. Then, theevent management unit 334 sends an event start report via the servercommunication unit 31 to the portable device 2 of each of the specifiedplayers, by using the received event ID as a parameter.

Then, the event management unit 334 terminates the processing.

On the other hand, when an event participation request has beenreceived, the event management unit 334 makes the player participate inthe corresponding event.

Specifically, the event management unit 334 interprets the receivedevent participation request, and specifies the ID of the event and theID of the player. The event management unit 334 then refers to the eventtable stored in the server storage unit 32′ by using the specified eventID as key, and stores the specified player ID as an ID of a playerparticipating in the corresponding event.

The event management unit 334 obtains a template for the correspondingevent from the server storage unit 32′.

Specifically, the event management unit 334 refers to the event tablestored in the server storage unit 32′ by using the specified event ID askey, and extracts an ID of a template for the corresponding event. Then,the event management unit 334 refers to the template table stored in theserver storage unit 32′ by using the extracted template ID as key, andextracts a file name of thumbnail image data for the correspondingtemplate, as well as the type ID and position of each facility. Further,the event management unit 334 obtains thumbnail image data correspondingto the extracted file name, from the server storage unit 32′.

The event management unit 334 sends the obtained template to theportable device 2.

In other words, the event management unit 334 sends the thumbnail imagedata of the template as well as the type ID and position of eachfacility that are obtained or the like, to the portable device 2 via theserver communication unit 31.

Then, the event management unit 334 terminates the processing.

FIGS. 14A and 14B illustrate examples of the operational flow of theportable device 2.

The below-described operational flow is executed, based on a programthat is stored in advance in the device storage unit 22, mostly by thedevice processing unit 25 by working together with each component of theportable device 2.

FIG. 14A illustrates an example of the operational flow of the gameprogression unit 251″.

Since Steps S100 to S108 are the same as illustrated in FIG. 6A, adescription thereof is omitted.

When an event start report is received from the server 3 via the devicecommunication unit 21 (Step S400—Yes), the game progression unit 251″gives the third template application unit 255 a command to executeprocessing, by using the received event start report as a parameter(Step S402).

FIG. 14B illustrates an example of the operational flow of the thirdtemplate application unit 255.

The third template application unit 255 obtains a template for an eventfrom the server 3, and applies the obtained template (Step S410).

The third template application unit 255 applies the obtained template(Step S412). Then, the third template application unit 255 terminatesthe processing.

On the other hand, when a command for different processing is given bythe player via the operation unit 23 (Step S400—No), the gameprogression unit 251″ executes the different processing (Step S110).

FIGS. 15A to 15C illustrate examples of the operational flow of theserver 3.

The below-described operational flow is executed, based on a programthat is stored in advance in the server storage unit 32′, mostly by theserver processing unit 33 by working together with each component of theserver 3.

FIG. 15A illustrates an example of the operational flow of the servercontrol unit 331′.

Since Steps S200 to S206 are the same as illustrated in FIG. 7A, adescription thereof is omitted.

When there is an event whose starting date and time has passed (StepS500—Yes), the server control unit 331′ gives the event management unit334 a command to execute processing, by using the event ID as aparameter (Step S502).

FIG. 15B illustrates an example of the operational flow of the eventmanagement unit 334.

When an event ID has been received, the event management unit 334 sendsan event start report to the portable device 2 (Step S510). Then, theevent management unit 334 terminates the processing.

On the other hand, when an event participation request is received fromthe portable device 2 via the server communication unit 31 (StepS504—Yes), the server control unit 331′ gives the event management unit334 a command to execute processing, by using the received eventparticipation request as a parameter (Step S506).

FIG. 15C illustrates another example of the operational flow of theevent management unit 334.

When an event participation request has been received, the eventmanagement unit 334 makes the player participate in the correspondingevent. (Step S520).

The event management unit 334 obtains a template for the correspondingevent from the server storage unit 32′ (Step S522).

The event management unit 334 sends the obtained template to theportable device 2 (Step S524). Then, the event management unit 334terminates the processing.

On the other hand, when a different request is received from theportable device 2 via the server communication unit 31 (Step S504—No),the server control unit 331′ executes different processing correspondingto the request (Step S208).

As have been described above, by making preexisting templatesdistributable, it becomes possible to make an event happen in accordancewith the arrangement of facilities, which increases the attractivenessof city building games, and makes it possible to continuously attractplayers to the game.

It should be noted that the present invention is not limited to theabove-described embodiment. For example, in the above-describedembodiment, it is assumed that a preexisting template is distributeddepending on occurrence of an event. But templates may not only be usedwhen an event is happening. During a so-called tutorial that is meant toteach players how to play by arranging various facilities, templateswith arrangements for different intended uses, such as balance type,resource protecting type, and so forth may be provided.

Further, in the above-described embodiment, the creation and applicationof a template are performed by the portable device 2. However, thecreation and application may also be performed by the server 3. In thiscase, the server 3 may store facilities arranged within the game spacefor each player, and in response to commands by the player, createand/or apply a template to a predetermined area within the game space ofthe player.

Further, while the above-described embodiment is described by an examplewherein positions of facilities are changed based on definition in thetemplate, the types of facilities may be changed.

Further, types are not limited to buildings, walls, fences and so forth,and any other game items such as soldiers and weapons to fight backagainst an attack by a different player may be applicable.

A computer program for causing a computer to execute the respectivefunctions of the device processing unit 25 and the server processingunit 33 may be provided in a recorded on a non-transitorycomputer-readable recording medium such as a semiconductor recordingmedium, a magnetic recording medium and an optical recording medium, andmay be installed on the device storage unit 22 and the server storageunit 32 from the recording medium by using a known set-up program, etc.

The preceding description has been presented only to illustrate anddescribe exemplary embodiments of the present invention. It is notintended to be exhaustive or to limit the invention to any precise formdisclosed. It will be understood by those skilled in the art thatvarious changes may be made and equivalents may be substituted forelements thereof without departing from the scope of the invention. Inaddition, many modifications may be made to adapt a particular situationor material to the teachings of the invention without departing from theessential scope. Therefore, it is intended that the invention not belimited to the particular embodiment disclosed as the best modecontemplated for carrying out this invention, but that the inventionwill include all embodiments falling within the scope of the claims. Theinvention may be practiced otherwise than is specifically explained andillustrated without departing from its spirit or scope.

The invention claimed is:
 1. One or more non-transitory computerreadable media, including computer-program instructions, which whenexecuted by a first computer, cause the first computer to: execute agame by arranging a set of plurality of game contents within a gamespace based on a player's command, the set of plurality of game contentsincluding at least one game content for defending from another player'sattack; and transmit a parameter to a server from the first computer,the server being capable of communicating with a second computer whichis different from the first computer, the parameter being used forreproducing a template in the second computer, the template definingpositions of the set of plurality of game contents for defending fromanother player's attack and the template being created by the firstcomputer in response to a template creation command from the player. 2.The one or more non-transitory computer readable media according toclaim 1, wherein the parameter is used for reproducing the template inthe second computer, the second computer executing the game by arranginganother set of plurality of game contents within a game space based on acommand from a player of second computer, the another set of pluralityof game contents including at least one game content for defending fromother player's attack.
 3. The one or more non-transitory computerreadable media according to claim 1, wherein the parameter being usedfor reproducing the template includes at least one of information of anidentifier of the player issued the template creation command,information of identifiers of types of the set of plurality of gamecontents defined by the template, and information of the positions ofthe set of plurality of game contents defined by the template.
 4. Theone or more non-transitory computer readable media according to claim 1,wherein the set of plurality of game contents include a facility fordefending from another player's attack.
 5. A computer comprising:circuitry configured to: execute a game by arranging a set of pluralityof game contents within a game space based on a player's command, theset of plurality of game contents including at least one game contentfor defending from another player's attack; and transmit a parameter toa server from the computer, the server being capable of communicatingwith another computer which is different from the computer, theparameter being used for reproducing a template in the another computer,the template defining positions of the set of plurality of game contentsfor defending from another player's attack and the template beingcreated by the computer in response to a template creation command fromthe player.
 6. The computer according to claim 5, wherein the parameteris used for reproducing the template in the second computer, the secondcomputer executing the game by arranging another set of plurality ofgame contents within a game space based on a command from a player ofsecond computer, the another set of plurality of game contents includingat least one game content for defending from other player's attack. 7.The computer according to claim 5, wherein the parameter being used forreproducing the template includes at least one of information of anidentifier of the player issued the template creation command,information of identifiers of types of the set of plurality of gamecontents defined by the template, and information of the positions ofthe set of plurality of game contents defined by the template.
 8. Thecomputer according to claim 5, wherein the set of plurality of gamecontents include a facility for defending from another player's attack.9. One or more non-transitory computer readable media, includingcomputer-program instructions, which when executed by a second computer,cause the second computer to: receive, at the second computer, aparameter from a server, the parameter being used for reproducing atemplate in the second computer, the template defining positions of aset of plurality of game contents for defending from another player'sattack and the template being created by a first computer in response toa template creation command from a player of the first computer; storethe parameter for reproducing the template received from the server in amemory of the second computer; reproduce, at the second computer, thetemplate by using the parameter and executing a game by arranging one ormore game contents within a game space based on a command from a playerof the second computer, the one or more game contents including the setof plurality of game contents defined by the template; and store typesand positions of the one or more game contents arranged in the gamespace, in the memory.
 10. The one or more non-transitory computerreadable media according to claim 9, wherein the parameter being usedfor reproducing the template includes at least one of information of anidentifier of the player issued the template creation command,information of identifiers of types of the set of plurality of gamecontents defined by the template, and information of the positions ofthe set of plurality of game contents defined by the template.
 11. Theone or more non-transitory computer readable media according to claim 9,wherein the set of plurality of game contents include a facility fordefending from another player's attack.
 12. A computer comprising:circuitry configured to: receive, at the computer, a parameter from aserver, the parameter being used for reproducing a template in thecomputer, the template defining positions of a set of plurality of gamecontents for defending from another player's attack and the templatebeing created by another computer in response to a template creationcommand from a player of the another computer; store the parameter forreproducing the template received from the server in a memory;reproduce, at the second computer, the template by using the parameterand executing a game by arranging one or more game contents within agame space based on a command from a player of the computer, the one ormore game contents including the set of plurality of game contentsdefined by the template; and store types and positions of the one ormore game contents arranged in the game space, in the memory.
 13. Thecomputer according to claim 12, wherein the parameter being used forreproducing the template includes at least one of information of anidentifier of the player issued the template creation command,information of identifiers of types of the set of plurality of gamecontents defined by the template, and information of the positions ofthe set of plurality of game contents defined by the template.
 14. Thecomputer according to claim 12, wherein the set of plurality of gamecontents include a facility for defending from another player's attack.